package marvin.music.dto;

import java.io.File;
import java.util.LinkedList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;


@XmlRootElement(name = Client.ROOT_NODE)
@XmlAccessorType(XmlAccessType.NONE)
public class Client {
	public static final String ROOT_NODE = "client";
	
	@XmlElement(name="name")
	private String name;
	@XmlElement(name="currentFilePath")
	private String currentFilePath;
	@XmlElement(name="playlist")
	private PlayList list;
	@XmlElement(name="repeat")
	private boolean repeat;
	@XmlElement(name="shuffle")
	private boolean shuffle;
	
	public Client() {
	}
	
	public Client(String name) {
		this.name = name;
		list = new PlayList();
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public PlayList getList() {
		return list;
	}

	public void setList(PlayList list) {
		this.list = list;
	}

	public PlayList getPlayList() {
		return list;
	}

	public boolean isRepeat() {
		return repeat;
	}

	public void setRepeat(boolean repeat) {
		this.repeat = repeat;
	}

	public boolean isShuffle() {
		return shuffle;
	}

	public void setShuffle(boolean shuffle) {
		this.shuffle = shuffle;
	}

	public String getCurrentFilePath() {
		return currentFilePath;
	}

	public void setCurrentFilePath(String currentFilePath) {
		this.currentFilePath = currentFilePath;
	}
}
